<template>
    <div>
        <p style="font-weight: bold" class="interfaceHead"><i class="el-icon-s-promotion"></i>行政处罚查询</p>
        <el-divider></el-divider>
        <el-table  border class="table"
                :data="positions"
                style="width: 80%">

            <el-table-column
                    prop="fine_date"
                    label="处罚时间"
                    width="180">
            </el-table-column>
            <el-table-column
                    prop="ref"
                    label="处罚依据"
                    width="180">
            </el-table-column>
            <el-table-column
                    prop="method"
                    label="处罚措施">
            </el-table-column>
        </el-table>
    </div>
</template>

<script>
    export default {
        name: "UserPunish",
        data() {
            return {
                positions: []
            }
        },
        mounted() {
            this.initMessage();
        },
        methods:{
            initMessage(){
                this.getRequest('/fine/find').then(resp=>{
                    if(resp){
                        console.log(resp)
                        this.positions = resp.data.data;
                    }
                })
            }
        }
    }
</script>

<style scoped>
    .table{
        margin-left: 120px;
        margin-top: 20px;
    }

</style>